package com.cmd.project.mapper;

import java.util.Date;
import java.util.List;

import com.cmd.project.domain.ProActivities;
import org.apache.ibatis.annotations.Param;

/**
 * 赛事活动Mapper接口
 *
 * @author cq
 * @date 2025-04-03
 */
public interface ProActivitiesMapper {
    /**
     * 查询赛事活动
     *
     * @param id 赛事活动主键
     * @return 赛事活动
     */
    public ProActivities selectProActivitiesById(Long id);

    /**
     * 查询赛事活动列表
     *
     * @param proActivities 赛事活动
     * @return 赛事活动集合
     */
    public List<ProActivities> selectProActivitiesList(ProActivities proActivities);

    /**
     * 新增赛事活动
     *
     * @param proActivities 赛事活动
     * @return 结果
     */
    public int insertProActivities(ProActivities proActivities);

    /**
     * 修改赛事活动
     *
     * @param proActivities 赛事活动
     * @return 结果
     */
    public int updateProActivities(ProActivities proActivities);

    /**
     * 删除赛事活动
     *
     * @param id 赛事活动主键
     * @return 结果
     */
    public int deleteProActivitiesById(Long id);

    /**
     * 批量删除赛事活动
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProActivitiesByIds(Long[] ids);

    ProActivities getProActivity(@Param("nowDate") Date nowDate);
}
